import instance from "@/utils/request";

//课程信息下拉选数据
export  const  courseSelect = ()=>instance.get("/courses/select");

//课程信息列表
export  const  courseList = (searchCourse)=>instance.post("/courses/list",searchCourse);


//课程添加和编辑
export  const  saveOrUpdateCourse = (courseForm)=>instance.post("/courses/saveOrUpdate",courseForm);


//根据课程id  获取课程信息
export  const  getCourseById = (cid)=>instance.get("/courses/getById/"+cid);

//根据课程id  删除课程信息
export  const removeCourseById = (cid)=>instance.delete("/courses/"+cid);


//数据可视化接口

export  const studentMajorScreenDataApi = ()=>instance.get("/courses/screenData")

